<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑</title>
    <script src="../layui/layui.js"></script>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/myAjax.js"></script>
    <script src="../js/util/add.js"></script>
</head>
<body>
<div style="margin-left: 50px;margin-top: 120px">
    <div class="layui-form-item">
        <label class="layui-form-label">学校名称</label>
        <div class="layui-input-inline">
            <input type="text" name="title" required lay-verify="required" id="academy" autocomplete="off"
                   class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入合法学校名称！谢谢配合</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学校网址</label>
        <div class="layui-input-inline">
            <input type="text" name="password" id="net" required lay-verify="required" autocomplete="off"
                   class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入学校官网网址！谢谢配合</div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" onclick="newAdd('/university/add',getData())">立即提交</button>
            <button type="reset" onclick="resetAdd('/html/universityAdd.html')" class="layui-btn layui-btn-primary">
                点击重置
            </button>
        </div>
    </div>
</div>
<script>
    function getData() {
        let data = {
            academy: $("#academy").val(),
            net: $("#net").val(),
        }
        return data;
    }
</script>
</body>
</html>